[R] if not conditions in R?

Posted by Philipp on Stack Overflow See other posts from Stack Overflow or by Philipp
Published on 2010-06-10T10:41:32Z Indexed on 2010/06/10 11:53 UTC
Read the original article Hit count: 303

Filed under:
|

Hi there,

is there anything like "if not" conditions in R?

easy Example (not working):

fun <- function(x)
{
if (!x > 0) {print ("not bigger than zero")}
}

fun(5)

Best wishes Philipp

© Stack Overflow or respective owner

Related posts about r

    Related posts about if-statement